<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<h1>管理员登录</h1>
<p style="color:red">
<%
request.setCharacterEncoding("utf-8");
String msg=request.getParameter("msg");

%>
<%=msg==null?"":msg%>
</p>
<%
 if(session.getAttribute("name")!=null){
	 response.sendRedirect("Yanzheng3.jsp");
	 return;
 }
%>  
          <form action="Yanzheng2.jsp" method="post">
                <label></label>
           <input type="text" name="username" placeholder="用户名" required/>
           <input type="password" name="pass" placeholder="密码" required/>
		<button type="submit" name="注册">注册</button>
          </form>
</body>
</html>